<%@ page import="com.apexedu.identity.entity.TSysMenu" %>
<%@ page import="java.util.List" %>
<%@ page import="com.apexedu.portal.constant.Constants" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
    List<TSysMenu> mrfw = (List<TSysMenu>) request.getAttribute("mrfw");
    List<TSysMenu> dyfw = (List<TSysMenu>) request.getAttribute("dyfw");
    String type = (String) request.getAttribute("type");
%>
<html>
<head>
    <title><%=Constants.ProjectInfo.PROJECT_NAME%>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>

<div id="main">
    <jsp:include page="head.jsp"/>
    <div id="content">
        <div id="contentSub" class="contentSub${type}">
            <div id="contentTr1">
                <div id="content1">
                    <div class="contentHead1">
                        <span class="titleSpan">消息提醒</span>
                        <%--<span class="moreSpan" o="msgContent"> 更多 </span>--%>
                    </div>
                    <div class="msgDiv">
                        <div class="listmessage">
                            <div class="listmessagedata1" style="letter-spacing: 1px;">
                                您的一卡通余额只剩<font style="color: orangered;">21</font>元，请尽快充值！
                            </div>
                            <c:if test="${dbts>0}">
                                <div class="listmessagedata1" style="letter-spacing: 1px;"><span class="dbtxA" style="cursor:pointer;">您有<font
                                        style="color:#290e7e; font-weight:bold" href="javascript:;">
                                    &nbsp;${dbts}&nbsp;</font>条待办事宜信息，请及时处理！</span>
                                </div>
                            </c:if>
                        </div>
                    </div>
                    <div class="calDiv">
                        <span class="weekSpan">${weekday}</span>
                        <span class="dateSpan">第&nbsp;${zc==null?'10':zc}&nbsp;教学周， &nbsp;${year}&nbsp;年&nbsp;${month}&nbsp;月<b>${date}</b>日 </span>
                    </div>
                </div>
                <div id="tzgg" style="width: 632px;">
                    <div class="lbxxtitle">
                        <ul>
                            <li class="select" h="${basePath}/s/uc/mh/l/oa/2?t=">通知公告</li>
                            <li h="${basePath}/s/uc/mh/l/oa/1?t=">学院动态</li>
                            <li>流程待办</li>
                        </ul>
                        <span class="turnSpan">
                            <img src="${basePath}/resources/images/left.png" class="prev"> &nbsp;&nbsp;&nbsp;
                            <b class="pageNoB">1</b>&nbsp;&nbsp;/&nbsp;&nbsp;
                            <b class="totalPageNoB">${tzggys}</b>&nbsp;&nbsp;&nbsp;
                            <img src="${basePath}/resources/images/right.png" class="next">&nbsp;&nbsp;&nbsp;
                            <label class="moreLabel" id="moreLabel" style="margin-right: 10px;"> 更多 </label>
				        </span>
                    </div>
                    <div class="lbxxcontent">
                        <ul class="select">
                            <c:forEach items="${tzgg}" var="lbxx">
                                <li hr="${basePath}/s/uc/mh/no/oa/${lbxx.id}">
                                        <span class="lbxxContentSpan" title="${lbxx.title}">${lbxx.title}
                                            <c:if test="${lbxx.isnew}">
                                                <img src="${basePath}/resources/images/new.gif"/>
                                            </c:if>
                                        </span>
                                    <span class="lbxxTimeSpan">
                                        <fmt:formatDate value="${lbxx.time}" pattern="yyyy-MM-dd"/>
                                    </span>
                                </li>
                            </c:forEach>
                        </ul>
                        <ul>
                            <c:forEach items="${xydt}" var="lbxx">
                                <li hr="${basePath}/s/uc/mh/no/oa/${lbxx.id}">
                                        <span class="lbxxContentSpan" title="${lbxx.title}">${lbxx.title}
                                            <c:if test="${lbxx.isnew}">
                                                <img src="${basePath}/resources/images/new.gif"/>
                                            </c:if>
                                        </span>
                                    <span class="lbxxTimeSpan"><fmt:formatDate value="${lbxx.time}"
                                                                               pattern="yyyy-MM-dd"/></span>
                                </li>
                            </c:forEach>
                        </ul>
                        <ul>
                            <c:forEach items="${dbsy}" var="lbxx">
                                <li hr="${basePath}/s/uc/mh/f?q=${lbxx.depart}">
                                    <span class="lbxxContentSpan" title="${lbxx.title}">${lbxx.title}</span>
                                    <span class="lbxxTimeSpan"><fmt:formatDate value="${lbxx.time}"
                                                                               pattern="yyyy-MM-dd"/></span>
                                </li>
                            </c:forEach>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="serverDiv">
                <div id="serverType">
                    <ul>
                        <li class="select">全部</li>
                        <c:forEach items="${serversType}" var="serverType">
                            <li menuid="${serverType.menuid}">${serverType.menuname}</li>
                        </c:forEach>
                    </ul>
                </div>
                <div id="serverList">
                    <c:forEach items="${servers}" var="menu">
                        <div class="server" menuid="${menu.menuid}">
                            <div class="servericon" style="background-color: ${menu.bgcolor};"
                                 hr="${menu.menupath}">
                                <img src="${basePath}/resources/images/icons/${menu.tb}"
                                     onerror="this.src='${basePath}/resources/images/icons/icons-01.png'">
                            </div>
                            <div class="servertitle" title="${menu.menuname}" style="color:#FFFFFF;"> <!-- 服务ID -->
                                <a href="${menu.menupath}" target="_blank">${menu.menuname}</a>
                            </div>
                        </div>
                    </c:forEach>
                    <c:if test="${userid == 'admin'}">
                        <div class="server serverAdd" onclick="window.open('${basePath}/s/uc/se/i/${mrfwid}')">
                            <div class="servericon">
                                <img src="${basePath}/resources/images/icons/addMore.png">
                            </div>
                            <div class="servertitle">
                            <span class="addSpan">
                                订阅
                            </span>
                            </div>
                        </div>
                    </c:if>
                </div>
            </div>

            <div class="leftMore leftMore${type}" id="msgContent">

            </div>
            <!--教师课表start-->
            <div class="leftMore leftMore${type}" id="jskbContent">
                <div class="titleDiv">
                    <span class="titleSpan">教师课表</span>
                    <span class="moreSpan">more </span>
                </div>
                <div class="contentDiv">
                    <table>
                        <tr>
                            <td width="12%"></td>
                            <td width="12%">周一</td>
                            <td width="12%">周二</td>
                            <td width="12%">周三</td>
                            <td width="12%">周四</td>
                            <td width="12%">周五</td>
                            <td width="12%">周六</td>
                            <td width="12%">周日</td>
                        </tr>
                    </table>
                </div>
                <div class="hiddendiv">
                    <span class="closeSpan"> 关闭</span>
                </div>
            </div>
            <!--教师课表end-->
            <!--教师课表start-->
            <div class="leftMore leftMore${type}" id="xskbContent">
                <div class="titleDiv">
                    <span class="titleSpan">学生课表</span>
                    <span class="moreSpan">more </span>
                </div>
                <div class="contentDiv">
                    <table>
                    </table>
                </div>
                <div class="hiddendiv">
                    <span class="closeSpan"> 关闭</span>
                </div>
            </div>
            <!--教师课表end-->
            <div class="rightMore rightMore${type}" id="serverContent">
                <div class="tRDiv">
                    <span class="tRSpan">已订阅服务</span>
                    <span class="cRSpan closeSpan">关闭</span>
                </div>
                <div class="cRDiv">
                </div>
            </div>
        </div>
        <div id="contentBg"></div>
    </div>
    <jsp:include page="foot.jsp"/>
</div>
</body>
</html>
